package com.gxa.jjty.core.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.persistence.*;

/**
 * @ClassName PhyNowStateVO
 * @Author: ws
 * @date 2021/12/8 17:48
 */
@Data
@NoArgsConstructor
@AllArgsConstructor

@Table(name = "phy_now_state") // 创建数据表的注解
@Entity // ORM对象关系映射

@ApiModel("陪护员当前状态的实体")
@Validated
public class PhyNowStateVO {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @Column(name = "name",nullable = false)
    private String name;

    @Column(name = "phone",unique = true,nullable = false)
    private String phone;

    @Column(name = "area")
    private String area;

    @Column(name = "today_order")
    private Long todayOrder;

    @Column(name = "server_state")
    private String serverState;

    @Column(name = "ability")
    private String ability;
}
